package com.alphas.openapiclientsdk;

import com.alphas.openapiclientsdk.client.ApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties("openapi.client")
@Data
@ComponentScan
public class OpenApiClientConfig {
    private String accessKey;
    private String secretKey;
    @Bean
    public ApiClient getApiClient() {
        return new ApiClient(accessKey, secretKey);
    }
}
